<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学员信息管理系统</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: #f5f7fa;
            padding: 20px;
        }
        .form-container {
            max-width: 1300px;
            margin: 0 auto;
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 25px;
            border-bottom: 2px solid #3498db;
            padding-bottom: 15px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 25px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }
        th {
            background-color: #3498db;
            color: white;
            font-weight: normal;
            width: 12%;
        }
        input[type="text"] {
            width: 95%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }
        input[type="text"]:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
        }
        .submit-btn {
            display: block;
            width: 200px;
            margin: 0 auto;
            padding: 12px 0;
            background-color: #27ae60;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .submit-btn:hover {
            background-color: #219653;
        }
        .required:after {
            content: " *";
            color: #e74c3c;
        }
    </style>
</head>
<body>
<div class="form-container">
    <h1>学员信息登记表</h1>
    <form th:action="@{/saveStudent}" method="post">
        <table>
            <!-- 第一行 -->
            <tr>
                <th class="required">编码</th>
                <td>0003</td>
                <th class="required">姓名</th>
                <td><input type="text" name="name" required></td>
                <th class="required">选科</th>
                <td><input type="text" name="subjects" value="物理,化学,生物" required></td>
                <th>分数</th>
                <td><input type="text" name="score"></td>
                <th>位次</th>
                <td><input type="text" name="rank"></td>
                <th>学校</th>
                <td><input type="text" name="school"></td>
            </tr>

            <!-- 第二行 -->
            <tr>
                <th class="required">电话</th>
                <td><input type="text" name="phone" required></td>
                <th class="required">性别</th>
                <td><input type="text" name="gender" required></td>
                <th>年龄</th>
                <td><input type="text" name="age"></td>
                <th>身高</th>
                <td><input type="text" name="height"></td>
                <th>体重</th>
                <td><input type="text" name="weight"></td>
                <th>民族</th>
                <td><input type="text" name="ethnicity"></td>
                <th>家长</th>
                <td><input type="text" name="parent"></td>
            </tr>

            <!-- 第三行 -->
            <tr>
                <th>家庭住址</th>
                <td colspan="5"><input type="text" name="address"></td>
                <th>兴趣爱好</th>
                <td colspan="3"><input type="text" name="hobbies"></td>
                <th>性格特点</th>
                <td colspan="2"><input type="text" name="personality"></td>
                <th>体检受限</th>
                <td colspan="2"><input type="text" name="physicalRestrictions"></td>
            </tr>

            <!-- 第四行 -->
            <tr>
                <th>家长期望</th>
                <td colspan="3"><input type="text" name="parentExpectations"></td>
                <th>家庭资源</th>
                <td colspan="3"><input type="text" name="familyResources"></td>
                <th>意向地域</th>
                <td colspan="3"><input type="text" name="preferredRegion"></td>
                <th>意向职业</th>
                <td colspan="2"><input type="text" name="preferredCareer"></td>
            </tr>

            <!-- 第五行 -->
            <tr>
                <th>意向大学</th>
                <td colspan="3"><input type="text" name="preferredUniversity"></td>
                <th>意向专业</th>
                <td colspan="3"><input type="text" name="preferredMajor"></td>
                <th>不学专业</th>
                <td colspan="3"><input type="text" name="unwantedMajor"></td>
                <th>不去地域</th>
                <td colspan="2"><input type="text" name="unwantedRegion"></td>
            </tr>

            <!-- 第六行 -->
            <tr>
                <th>备注</th>
                <td colspan="7"><input type="text" name="remarks"></td>
                <th>指导老师</th>
                <td colspan="5"><input type="text" name="advisor"></td>
            </tr>
        </table>

        <button type="submit" class="submit-btn">增加学员</button>
    </form>
</div>
</body>
</html>